<header>
    <div class="navbar navbar-default navbar-fixed-top">
        <div class="">
            <div class="row"  ng-controller="CommonModuleCtrl">
                <div class="col-sm-2 col-md-2 col-lg-2">
                    <div class="navbar-header navbar-left">
                        <!--<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">-->
                            <!--<span class="icon-bar"></span>-->
                            <!--<span class="icon-bar"></span>-->
                            <!--<span class="icon-bar"></span>-->
                        <!--</button>-->
                        <a class="navbar-brand" href="#">
                            <span>燃气信息化管理平台</span>
                        </a>

                    </div>
                </div>
                <div class="col-sm-6 col-md-6 col-lg-6">
                    <div class="navbar-collapse collapse">
                        <ul class="nav navbar-nav navbar-left">
                            <li ng-repeat="item in navItems"
                                ng-class="{active: item.name == activeNav.lv1.name}" ng-if="inRoles(item.roles)">
                                <a ng-href="{{item.href}}" target="{{item.target||'_self'}}"> {{item.name}} </a>
                            </li>

                        </ul>
                    </div>
                </div>
                <div class="col-sm-4 col-md-4 col-lg-4">
                    <div class="navbar-collapse collapse">
                        <ul class="nav navbar-nav navbar-right">
                            <li class="dropdown messages-menu">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <i class="fa fa-envelope-o"></i>
                                    <span class="label label-success">4</span>
                                </a>
                                <!--<ul class="dropdown-menu">-->
                                    <!--<li class="header">You have 4 messages</li>-->
                                    <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                        <!--&lt;!&ndash;&lt;!&ndash; inner menu: contains the actual data &ndash;&gt;&ndash;&gt;-->
                                        <!--&lt;!&ndash;<ul class="menu">&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&lt;!&ndash; start message &ndash;&gt;&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<div class="pull-left">&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<h4>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;Support Team&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<small><i class="fa fa-clock-o"></i> 5 mins</small>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</h4>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<p>Why not buy a new awesome theme?</p>&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;&lt;!&ndash; end message &ndash;&gt;&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<div class="pull-left">&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<img src="dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<h4>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;AdminLTE Design Team&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<small><i class="fa fa-clock-o"></i> 2 hours</small>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</h4>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<p>Why not buy a new awesome theme?</p>&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<div class="pull-left">&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<img src="dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<h4>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;Developers&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<small><i class="fa fa-clock-o"></i> Today</small>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</h4>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<p>Why not buy a new awesome theme?</p>&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<div class="pull-left">&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<img src="dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<h4>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;Sales Department&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<small><i class="fa fa-clock-o"></i> Yesterday</small>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</h4>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<p>Why not buy a new awesome theme?</p>&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<div class="pull-left">&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<img src="dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<h4>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;Reviewers&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<small><i class="fa fa-clock-o"></i> 2 days</small>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</h4>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<p>Why not buy a new awesome theme?</p>&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                        <!--&lt;!&ndash;</ul>&ndash;&gt;-->
                                    <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                    <!--&lt;!&ndash;<li class="footer"><a href="#">See All Messages</a></li>&ndash;&gt;-->
                                <!--</ul>-->
                            </li>
                            <!-- Notifications: style can be found in dropdown.less -->
                            <li class="dropdown notifications-menu">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <i class="fa fa-bell-o"></i>
                                    <span class="label label-warning">10</span>
                                </a>
                                <!--<ul class="dropdown-menu">-->
                                    <!--<li class="header">You have 10 notifications</li>-->
                                    <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                        <!--&lt;!&ndash;&lt;!&ndash; inner menu: contains the actual data &ndash;&gt;&ndash;&gt;-->
                                        <!--&lt;!&ndash;<ul class="menu">&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<i class="fa fa-users text-aqua"></i> 5 new members joined today&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<i class="fa fa-warning text-yellow"></i> Very long description here that may not fit into the&ndash;&gt;-->
                                                    <!--&lt;!&ndash;page and may cause design problems&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<i class="fa fa-users text-red"></i> 5 new members joined&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<i class="fa fa-shopping-cart text-green"></i> 25 sales made&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<i class="fa fa-user text-red"></i> You changed your username&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                        <!--&lt;!&ndash;</ul>&ndash;&gt;-->
                                    <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                    <!--&lt;!&ndash;<li class="footer"><a href="#">View all</a></li>&ndash;&gt;-->
                                <!--</ul>-->
                            </li>
                            <!-- Tasks: style can be found in dropdown.less -->
                            <li class="dropdown tasks-menu">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <i class="fa fa-flag-o"></i>
                                    <span class="label label-danger">9</span>
                                </a>
                                <!--<ul class="dropdown-menu">-->
                                    <!--<li class="header">You have 9 tasks</li>-->
                                    <!--&lt;!&ndash;<li>&ndash;&gt;-->
                                        <!--&lt;!&ndash;&lt;!&ndash; inner menu: contains the actual data &ndash;&gt;&ndash;&gt;-->
                                        <!--&lt;!&ndash;<ul class="menu">&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&lt;!&ndash; Task item &ndash;&gt;&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<h3>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;Design some buttons&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<small class="pull-right">20%</small>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</h3>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<div class="progress xs">&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar"&ndash;&gt;-->
                                                             <!--&lt;!&ndash;aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">&ndash;&gt;-->
                                                            <!--&lt;!&ndash;<span class="sr-only">20% Complete</span>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;&lt;!&ndash; end task item &ndash;&gt;&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&lt;!&ndash; Task item &ndash;&gt;&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<h3>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;Create a nice theme&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<small class="pull-right">40%</small>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</h3>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<div class="progress xs">&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar"&ndash;&gt;-->
                                                             <!--&lt;!&ndash;aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">&ndash;&gt;-->
                                                            <!--&lt;!&ndash;<span class="sr-only">40% Complete</span>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;&lt;!&ndash; end task item &ndash;&gt;&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&lt;!&ndash; Task item &ndash;&gt;&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<h3>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;Some task I need to do&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<small class="pull-right">60%</small>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</h3>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<div class="progress xs">&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar"&ndash;&gt;-->
                                                             <!--&lt;!&ndash;aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">&ndash;&gt;-->
                                                            <!--&lt;!&ndash;<span class="sr-only">60% Complete</span>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;&lt;!&ndash; end task item &ndash;&gt;&ndash;&gt;-->
                                            <!--&lt;!&ndash;<li>&lt;!&ndash; Task item &ndash;&gt;&ndash;&gt;-->
                                                <!--&lt;!&ndash;<a href="#">&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<h3>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;Make beautiful transitions&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<small class="pull-right">80%</small>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</h3>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;<div class="progress xs">&ndash;&gt;-->
                                                        <!--&lt;!&ndash;<div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar"&ndash;&gt;-->
                                                             <!--&lt;!&ndash;aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">&ndash;&gt;-->
                                                            <!--&lt;!&ndash;<span class="sr-only">80% Complete</span>&ndash;&gt;-->
                                                        <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                    <!--&lt;!&ndash;</div>&ndash;&gt;-->
                                                <!--&lt;!&ndash;</a>&ndash;&gt;-->
                                            <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                            <!--&lt;!&ndash;&lt;!&ndash; end task item &ndash;&gt;&ndash;&gt;-->
                                        <!--&lt;!&ndash;</ul>&ndash;&gt;-->
                                    <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                    <!--&lt;!&ndash;<li class="footer">&ndash;&gt;-->
                                        <!--&lt;!&ndash;<a href="#">View all tasks</a>&ndash;&gt;-->
                                    <!--&lt;!&ndash;</li>&ndash;&gt;-->
                                <!--</ul>-->
                            </li>
                            <!-- User Account: style can be found in dropdown.less -->
                            <li class="dropdown user user-menu">
                                <a  class="dropdown-toggle" data-toggle="dropdown">
                                        <img ng-src="{{currentUserPhoto}}" class="user-image" >
                                    <span class="hidden-xs">{{currentUser.userId}}</span>
                                    <span class="hidden-xs">&nbsp;</span>
                                </a>
                                <ul class="dropdown-menu">
                                    <!-- User image -->
                                    <li class="user-header">
                                        <img ng-src="{{currentUserPhoto}}" class="img-circle">

                                        <p>
                                            <small>{{currentUser.name}} - {{currentUser.userGroup.name}}</small>
                                        </p>
                                        <p>
                                            <small>{{currentUser.department.name}}</small>
                                        </p>
                                    </li>
                                    <!-- Menu Body -->
                                    <li class="user-body">
                                        <div class="row">
                                            <!--<div class="col-xs-4 text-center">-->
                                                <!--<a href="#">{{currentUser.mobilePhone}}</a>-->
                                            <!--</div>-->
                                            <!--<div class="col-xs-4 text-center">-->
                                                <!--<a href="#">{{currentUser.officePhone}}</a>-->
                                            <!--</div>-->
                                            <!--<div class="col-xs-4 text-center">-->
                                                <!--<a href="#">{{currentUser.email}}</a>-->
                                            <!--</div>-->
                                        </div>
                                        <!-- /.row -->
                                    </li>
                                    <!-- Menu Footer-->
                                    <li class="user-footer">
                                        <div class="pull-left">
                                            <a href="javascript:void(0)" class="btn btn-primary btn-flat">收起</a>
                                        </div>
                                        <div class="pull-right">
                                            <a href="javascript:void(0);" ng-click="logout()" class="btn btn-primary btn-flat">登出</a>
                                        </div>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
                <!--<div class="col-sm-2 col-md-2 col-lg-2 navbar-clock" ng-controller="CommonModuleCtrl">-->
                    <!--<span><p>{{currentUser.userId}}</p></span>-->
                <!--</div>-->
                <!--<div class="col-sm-1 col-md-1 col-lg-1 navbar-clock" ng-controller="CommonModuleCtrl">-->
                    <!--<a href="javascript:void(0);" ng-click="logout()">退出登录</a>-->
                <!--</div>-->
            </div>
        </div>
   </div>
</header>
